<?php 
function http_post_json($url, $jsonStr)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonStr);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array(
        'Content-Type: application/json; charset=utf-8',
        'Content-Length: ' . strlen($jsonStr)
    ));
    $response = curl_exec($ch);
    var_dump($response);
    $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    curl_close($ch);
    
    return array($httpCode, $response);
}
$access_token=getToken();
$url='https://api.weixin.qq.com/cgi-bin/express/business/path/get?access_token='.$access_token;

$openid='ohFb-40Zv6S5tbQpvCHzpjIfUrKo';
$order_id='0123456789011112';
 
$orderInfo=array(
    'order_id'=> $order_id,
    'openid'=>$openid,
    'delivery_id'=> 'YUNDA',
    "waybill_id"=> "3103674248663"
);
$jsonInfo=json_encode($orderInfo,  JSON_UNESCAPED_UNICODE);
 
echo $jsonInfo;
echo "<br /><br />"; 
$getdata=json_decode(http_post_json($url, $jsonInfo),true);
var_dump($getdata);

?>
view-source:https://elixir.omnimkt.com/elixir07/web/order/?c=getPath